package game.model.request;

import common.model.po.GProductRequirement;
import common.model.po.GProductUnlock;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 米泽鹏
 * @since 2022-3-5 下午 12:26
 */
@Data
public class SaveProductRequest {

	private Long id;

	@NotBlank(message = "商品名称不能为空")
	private String productName;

	@NotNull(message = "类别id不能为空")
	private Long classificationId;

	@NotBlank(message = "图片地址不能为空")
	private String image;

	@NotNull(message = "同级排序不能为空")
	private Integer sort;

	private List<GProductRequirement> requirementList;

	private List<GProductUnlock> unlockList;

}
